package com.nh.controller;

import com.nh.domain.AccountInfo;
import com.nh.mapper.AccountInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
*   @classDesc:  功能描述：(用户处理Controller)
*   @author: 王杰
*   @createTime: 2017/11/3
*   @version: V1.0
*/
@RestController
public class AccountController {
    @Autowired
    private AccountInfoMapper accountInfoMapper;
    @RequestMapping(value = "haha")
    public String selectAccount(){
        return "xxxx";
    }

    @RequestMapping(value = "/getAccountInfo")
    public AccountInfo getAccountInfo(Long account){
        return accountInfoMapper.selectAccountById(account);
    }
}
